/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.business.service.bond;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cereshop.business.page.bond.ShopRechargeVO;
import com.shop.cereshop.business.param.bond.ShopRechargeDTO;
import com.shop.cereshop.commons.domain.bond.CereShopBond;

import javax.validation.Valid;
import java.math.BigDecimal;

/**
 * @author lx
 */
public interface CereShopBondService extends IService<CereShopBond> {
  // 基础服务接口，可根据业务需要扩展

    /**
     * @description: 判断用户是否缴纳保证金
     * @param:
     * @return:
     * @date: 2025/10/23 16:22
     */
    boolean isPayBound(Long shopId);

    /**
     * @description: 更新用户保证金余额
     * @param: shopId 店铺id
     * @param: amount 金额
     * @param: transactionType 交易类型
     * @param: rechargeNo 充值单号
     * @param: description 交易描述
     * @return: 是否成功
     * @date: 2025/10/23 16:22
     */
    boolean updateBalance(Long shopId, BigDecimal amount, Integer transactionType, String rechargeNo, String description);
}